/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package AjouConquerorBeans;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author ajou
 */
@Entity
@XmlRootElement
public class Login implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @Id
    private String UerId;
    private String Password;

    public String getUerId() {
        return UerId;
    }

    public void setUerId(String UerId) {
        this.UerId = UerId;
    }

    public String getPassword() {
        return Password;
    }

    public void setPassword(String Password) {
        this.Password = Password;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (UerId != null ? UerId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Login)) {
            return false;
        }
        Login other = (Login) object;
        if ((this.UerId == null && other.UerId != null) || (this.UerId != null && !this.UerId.equals(other.UerId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "AjouConquerorBeans.Login[ id=" + UerId + " ]";
    }
    
}
